package com.xkcoding.action;

import com.xkcoding.core.OrderCore;
import com.xkcoding.model.OrderModel;
import com.xkcoding.pipeline.BusinessProcess;
import com.xkcoding.pipeline.ProcessContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author kaibing.deng
 * @Date 2024/5/11 10:34
 * @description 下单模块
 **/
@Slf4j
@Component
public class OrderAction implements BusinessProcess<OrderModel> {

    /**
     * 下单core
     */
    public OrderCore orderCore;

    @Override
    public void process(ProcessContext<OrderModel> context) {
        log.info("OrderAction process success");
        orderCore.order();

    }
}
